<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="myScript.js"></script>
</head>
<body>
<input id="demo" type="text"/>
<button type="button" onclick="numberfun()">请点击！</button>
<p id="p01"></p>

<script>
    var i=1,j=1;
    var text="";
    for(i=1;i<=9;i++){
        for(j=1;j<=9;j++){
            text+=i+" * "+j+" = "+(i*j)+" ";
        }
        text+="<br>";
    }
    document.write(text);
    console.log(text);
</script>
</body>
</html>